<template>
  <model
    :visible="visible"
    @close="close"
    @submit="submit"
  >
    <div slot="content">
      分配小号
    </div>
  </model>
</template>

<script>
import { Model } from '@/components'

export default {
  props: {
    visible: {
      type: Boolean,
      required: true
    },
    model: {
      type: Number,
      default: () => 0
    }
  },
  components: {
    Model
  },
  data () {
    return {
      titleList: ['新建', '编辑']
    }
  },
  methods: {
    setData (e) {
    },
    initModel () {
    },
    close () {
      this.initModel()
      this.$emit('close')
    },
    submit () {
      console.log(this.form)
    }
  }
}
</script>
<style lang='less' scoped>

.form_item{
  display: flex;
  justify-content: left;
  align-items: center;
  min-height: 70px;
  .form_title{
    width: 70px;
  }
  .form_input{
    width: 70%;
  }
  .form_textarea{
    width: 85%;
    height: 60px;
    margin: 20px 0;
  }
  .form_image{
    width: 85%;
  }
}

</style>
